class People:
    def __init__(self, name, sex):
        self.name = name
        self.sex = sex

    def print(self):
        print('%s %s %s' % (self.name,  self.sex))


class Student(People):
    def __init__(self, id, name, sex):
        # 调用父类构造函数
        People. __init__(self, name, sex)
        self.id = id
    # 覆写父类方法

    def print(self):
        print('%s %s %s' % (self.name, self.id, self.sex))


student1 = Student(17114120208, 'liwenwen',  '男')
student1.print()
